﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProtocolXML
{
    class Program
    {
        static void Main(string[] args)
        {
            // 协议工具
            {
                ProtoclHandler handler = new ProtoclHandler();
                XMLParser.parseXMLFile(handler, "Protocl.xml");

                ProtocolToCSharp cs = new ProtocolToCSharp();
                cs.Apply("Protocl.cs", handler.Root);
            }

            {
                ProtoclHandler handler = new ProtoclHandler();
                XMLParser.parseXMLFile(handler, "Protocl.xml");

                ProtocolToLpc lpc = new ProtocolToLpc();
                lpc.Apply("Protocl.c", handler.Root);
            }
        }
    }
}
